package cn.huhaoran.yaoyaolingxian.icons;

import com.intellij.openapi.actionSystem.DefaultActionGroup;
import com.intellij.openapi.actionSystem.Presentation;
import com.intellij.openapi.util.IconLoader;

import javax.swing.*;

public class MyActionGroup extends DefaultActionGroup {

    public MyActionGroup() {
        super();
        // 设置图标
        Presentation presentation = getTemplatePresentation();
        Icon myGroupIcon = IconLoader.getIcon("/icons/pluginIcon.svg", MyActionGroup.class);
        presentation.setIcon(myGroupIcon);
    }
}